/**
 * Created by zhaohenry on 2017/6/11.
 */
import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex)

const state = {
  step: {num: 1},
  serverStep: {num: 1},  // TODO：step应该可以和这个合并
  taskINFO: {
    name: '',
    simulation: '',
    id: '',
    requirement: '',
    simStep: '',
    realStep: '',
    video: '',
    pdfUrl: '',
    reportTemp: '',
    connectPhoto: ''
  },
  currentTask: {
    id: ''
  }
}

export default new Vuex.Store({
  state,
  mutations,
  actions
})
